package com.hnevc.mallserver3.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@TableName("t_cart")
@ApiModel(value = "Cart", description = "购物车")
public class Cart {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "ID")
    private Long id;
    @ApiModelProperty(value = "商品ID")
    private Long goodsId;
    @ApiModelProperty(value = "用户ID")
    private Long memberId;
    @ApiModelProperty(value = "数量")
    private Integer quantity;
    @ApiModelProperty(value = "是否选中")
    private Boolean selected;

    // 省略getter和setter方法，‌实际使用时请添加
}